/*csd*/define(function(require,exports,module){"use strict";var a=require("./jquery");var b=exports;b.option={};b.maskCount=0;b.maskElement=null;b.container=a(document.body);b.show=b.begin=function(d){d=d||b.option||{};if(b.maskCount<1){var c=[];c.push('<div style="width:100%;height:100%;z-index:999999999;position:fixed;left:0px;top:0px;');c.push("background-color:"+(d.color||"")+";");c.push("opacity:"+(d.opacity||1)+";");if(d.pic){c.push("background-image:url("+d.pic);c.push(");background-repeat:no-repeat;background-position:center center;");}c.push('"></div>');b.maskElement=a(c.join(""));b.container.append(b.maskElement);}b.maskCount++;};b.hide=b.end=function(c){c=c||{};b.maskCount--;if(b.maskCount<1&&b.maskElement){b.maskElement.remove();}};});